'''
import heapSort #在同一目录文件夹内
if __name__=='__main__':
    S=[1,5,4,3,8,7,6,2,9]
    newS=heapSort.heapSort(S)
    print(newS)
'''

'''
from heapSort import heapSort #在同一目录文件夹内
if __name__=='__main__':
    S=[1,5,4,3,8,7,6,2,9]
    newS=heapSort(S)
    print(newS)
'''
import sys #当两个文件不在同一个路径
sys.path.append('C:/Users/Administrator/Desktop/PycharmProjects/sort')#路径采用C:/方式
import heapSort #在同一目录文件夹内
if __name__=='__main__':
    S=[1,5,4,3,8,7,6,2,9]
    newS=heapSort.heapSort(S)
    print(newS)